package com.openatc.agent.service;

import com.openatc.agent.model.DirectionDetail;
import com.openatc.agent.model.VipRoute;
import com.openatc.agent.model.VipRouteDevice;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface DirectionDetailDao extends JpaRepository<DirectionDetail, Integer> {
    @Transactional
    void deleteByDetailId(int id);

    DirectionDetail findByDetailId(int id);
    List<DirectionDetail> findByViprouteid(int id);

}
